package cn.edu.hunau.pm.service;

import cn.edu.hunau.pm.exception.BusinessException;
import cn.edu.hunau.pm.mapper.SearchMapper;

import cn.edu.hunau.pm.pojo.SearchInclusion;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchServiceImpl implements SearchService{
    @Autowired
    private SearchMapper searchMapper;
    public SearchInclusion sousuo(String neirong)
    {
        SearchInclusion seaIclu = searchMapper.queryByInlusion(neirong);
        if(seaIclu==null)
        {
            //用户名或者密码错误
            throw new BusinessException(100406,"暂时未找到!");
        }
        return seaIclu;
    }
}
